#if !defined(AFX_DLGTOOLBARMAPUNIT_H__1EAC4346_1679_4FC2_90B8_1FB85F1538BB__INCLUDED_)
#define AFX_DLGTOOLBARMAPUNIT_H__1EAC4346_1679_4FC2_90B8_1FB85F1538BB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgToolViewSwicth.h : header file
//
#include "..\..\Inc\Center\WzdToolTipCtrl.h"

/////////////////////////////////////////////////////////////////////////////
// CDlgToolBarMapUnit dialog

class CDlgToolBarMapUnit : public CDlgToolBar
{
private:
	int		m_nBtnWidth ;
	BOOL	m_bEditNumber;
	int		m_nComboBoxWidth_1 ;
	int		m_nComboBoxWidth_2 ;
	int		m_nComboBoxWidth_3 ;
	int		m_nComboBoxWidth_4 ;
protected:
	void	SetCurMap();
public:
	virtual int	CreateBar();
public: // Map unit bar
 	void    SearchMapUnit();
	void    FillFloorName();
 	void 	FillMaplayerName(DWORD dwMapType);
	void	FillMapUnitNumber(int nMaplayerID);
 	bool	FindMapUnitNumber(CComboBox* cb,char *szNumber);
 	CComboBox* GetMaplayerComboBox();
	void	RefreshMapUnitList(int nMapID);
public:
	CDlgToolBarMapUnit(CWnd* pParent = NULL);   // standard constructor
	//{{AFX_DATA(CDlgToolBarMapUnit)
	enum { IDD = IDD_Dlg_Tool_Bar_MapUnit };
	//}}AFX_DATA
	protected:

	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual BOOL    PreTranslateMessage(MSG* pMsg);

	// Generated message map functions
	//{{AFX_MSG(CDlgToolBarMapUnit)
 	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnCbnSelendokCombo1();
	afx_msg void OnCbnSelendokCombo2();
	afx_msg void OnCbnSelendokCombo3();
	afx_msg void OnCbnEditupdateCombo4();
	afx_msg void OnCbnKillfocusCombo4();
	afx_msg void OnCbnSetfocusCombo4();
};
#endif
